package com.design.pattern.structure.adapter.demol.classadapter;

public class PowerAdapter extends AC220 implements DC5{
    @Override
    public int output5V() {
        int adapterInput = super.outputAC220();
        int adapterOutput = adapterInput / 44;
        System.out.println("使用Adapter输入" + adapterInput + "V，输出" + adapterOutput + "V");
        return adapterOutput;
    }
}
